<template >
    <div>
        <button @click="clickHandler">Call father</button> 
    </div>
</template>
<script>
export default {
    data() {
        return {
            subject:'Web前端框架技术',
            score:88,
        }
    },
    methods:{
        clickHandler(){
            this.$emit('score',this.subject,this.score);
        }
    }
}
</script>
<style >
    
</style>